﻿@model handvn.Models.Product
@{
    ViewBag.Title = "Handvn-Quản lý sản phẩm";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@if (Request.IsAuthenticated)
{
 <div class="tl_content_qly_prod">
    <h2>
        QUẢN LÝ SẢN PHẨM</h2>

    <fieldset>
        <legend>CHI TIẾT SẢN PHẨM</legend>
        <div class="display-label">
            Tên sản phẩm</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.TenSanPham)
        </div>
        <div class="display-label">
            Số lượng</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.SoLuong)
        </div>
        <div class="display-label">
            Chi tiết danh mục</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.DetailCategories.TenChiTietDanhMuc)
        </div>
        <div class="display-label">
            Giá sản phẩm</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.GiaSanPham)
        </div>
        @*    <div class="display-label">Giá thị trường</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.GiaThiTruong)
    </div>*@
        <div class="display-label">
            Hình ảnh</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.HinhAnh)
        </div>
        <div class="display-label">
            Giới thiệu
        </div>
       @Html.TextAreaFor(model => model.GioiThieu, new { @class = "adminRichText" })
        <div class="display-field">
            @*@Html.DisplayFor(model => model.GioiThieu)*@
            
        </div>
        <script language="javascript" type="text/javascript">
            jQuery(".adminRichText").ckeditor();
        </script>
        @*    <div class="display-label">NgayNhapSanPham</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.NgayNhapSanPham)
    </div>*@ @*<div class="display-label">Tình trạng</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.TinhTrang)
    </div>*@
    </fieldset>
    <p>
        @Html.ActionLink("Edit", "UserEdit", new { id = Model.ProductID }) |
        @Html.ActionLink("Back to List", "UserView", new { UserID = @Session["UserId"] })
    </p>
    </div>
}
else
{
    <div class="tl_content" style="text-align:center">
    <p>
        XIN VUI LÒNG ĐĂNG NHẬP</p>
    @Html.ActionLink("Đăng nhập", "Login", "Account")
    </div>
}